﻿<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<META name="keywords" content="$!config.keywords" />
<META name="description" content="$!config.description" />
<title>$!config.name-发表信息</title>
<link href="skin/default/css/css.css" rel="stylesheet" type="text/css" />
<script>
#if(!$need_verify)
var need_verify=1;
var yzm_str='<INPUT name=randomCode size=6 maxlength=4><span style="padding-left:0px;"><img src="randomCode.do" align="middle"></span>请输入前面图中的四位验证码，字母不区分大小写';
#else
var need_verify=0;
#end
function checkFocus(){
if(need_verify==1){
    if(document.getElementById('randomCodeImg').innerHTML==null || document.getElementById('randomCodeImg').innerHTML==''){
      document.getElementById('randomCodeImg').innerHTML=yzm_str;
    }
  }  
 }
var score_str='积分:<INPUT name=vrvalue size=6 maxlength=4 value=$!vrvalue>';
function showScore(v){ 
if(v=="score"){
    if(document.getElementById('scoreSpan').innerHTML==null || document.getElementById('scoreSpan').innerHTML==''){
      document.getElementById('scoreSpan').innerHTML=score_str;
    }
  } 
  else  document.getElementById('scoreSpan').innerHTML="";
 }
function doSave()
{
if(doCheck())
{
if(EditForm.cid.value!="")EditForm.parameter.value="update";
EditForm.submit();
}
}
function openScript(url, width, height){
var Win =window.open(url,"openScript",'left=150,top=200,width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=no' );
}
function doCheck()
{
if(EditForm.title.value=="")
{
alert("标题不能为空！");
EditForm.title.focus();
return false;
}
if(EditForm.content.value=="")
{
alert("内容不能为空！");
EditForm.content.focus();
return false;
}

return true;
}
var tagpic=#if($tagpic)$!tagpic #else 0 #end;
function init()
{
if(tagpic>0)
EditForm.tagpic[tagpic-1].checked=true;
}
function doRefresh(obj,file)
{
if(file!="")
{
eval(obj+".value=file");
}
EditForm.vrtype.value="$!vrtype";
}
function doUploadImg()
{
upImgFrame.EditForm.parentObj.value="EditForm.imgs";
upImgFrame.EditForm.types.value="doc";
upImgFrame.doUpload();
}
function doUpload()
{
upFrame.EditForm.parentObj.value="EditForm.files";
upFrame.EditForm.types.value="doc";
upFrame.doUpload();
}
</script>
<script type="text/javascript" src="res/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="res/js/common.js"></script>
<script language="javascript" src="skin/default/js/js.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="init()">
#parse("/inc/top.htm")
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="8" class="cn_12px">
  <tr>
    <td><strong><a href="index.do" target="_top">$!config.name</a>-&gt;<a href="/bbs/bbsdoc.do?parameter=list&&sn=$!dir.sn">$!dir.title</a></strong><br>    </td>
    <td><div align="right">版主：<font color="01309C">$!dir.manager</font></div></td>
  </tr>
</table>
<form name="EditForm" method="post" action="bbsdoc.do">
<input type="hidden" name="parameter" value="add" />
<input type="hidden" name="cid"   value="$!cid" />
<input type="hidden" name="dirsn"   value="$!dir.sn" />
 <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E8E8E8">
   <tr bgcolor="#FFFFFF">
     <td width="11%" height="29" align="center">标题：</td>
     <td colspan="2">
       <input name="title" type="text" class="input3" id="title" value="$!title" size="40" onFocus="checkFocus();">
       <span class="text-red4">标题不超过20字</span></td>
   </tr>
   <tr bgcolor="#FFFFFF">
     <td height="50" align="center" valign="middle">类型：</td>
     <td colspan="2" class="file1"><select name="vrtype" onChange="showScore(this.value);" onFocus="checkFocus();">
       <option value="">公开</option>
       <option value="user">会员可见</option>
       <option value="score">积分限制</option>
       <option value="reply">回复可见</option>
       </select>
         <span id="scoreSpan"></span></td>
   </tr>
   <tr bgcolor="#FFFFFF">
     <td align="center" valign="middle"><p align=center><b>表情图片</b></p>
         <p align=center><b>(<a href="javascript:openScript('/bbs/smiley.htm?start=1',500,400)">加入心情图标</a>)</b></p></td>
     <td colspan="2" class="file1"><input type="radio" name="tagpic" value="1">
         <img src="/bbs/images/emot/face1.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="2">
         <img src="/bbs/images/emot/face2.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="3">
         <img src="/bbs/images/emot/face3.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="4">
         <img src="/bbs/images/emot/face4.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="5">
         <img src="/bbs/images/emot/face5.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="6">
         <img src="/bbs/images/emot/face6.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="7">
         <img src="/bbs/images/emot/face7.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="8">
         <img src="/bbs/images/emot/face8.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="9">
         <img src="/bbs/images/emot/face9.gif" width="22" height="22"> <br>
         <input type="radio" name="tagpic" value="10">
         <img src="/bbs/images/emot/face10.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="11">
         <img src="/bbs/images/emot/face11.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="12">
         <img src="/bbs/images/emot/face12.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="13">
         <img src="/bbs/images/emot/face13.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="14">
         <img src="/bbs/images/emot/face14.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="15">
         <img src="/bbs/images/emot/face15.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="16">
         <img src="/bbs/images/emot/face16.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="17">
         <img src="/bbs/images/emot/face17.gif" width="22" height="22">
         <input type="radio" name="tagpic" value="18">
         <img src="/bbs/images/emot/face18.gif" width="22" height="22"> </td>
   </tr>
   <tr bgcolor="#FFFFFF">
     <td align="center" valign="top"><br>
      内容：</td>
     <td colspan="2"> 论坛发言支持<span  style="color:#FF0000 ">UBB</span><span class="style1"></span>格式<br>
         <textarea name="content" cols="70" rows="15" style="width:90%" id="content" onFocus="checkFocus();">$!content</textarea></td>
   </tr>
   <tr bgcolor="#FFFFFF">
     <td height="29" align="right">相关图片：</td>
     <td colspan="2">
       <input name="imgs" type="text" id="imgs" value="$!imgs" size="70" maxlength="150">
       各图片之间用逗号隔开 </td>
   </tr>
  #if($canUpload)
  <tr bgcolor="#FFFFFF">
    <td height="29" align="right">上传图片：</td>
    <td valign="middle" colspan="2">
      <iframe name="upImgFrame" style=" vertical-align:middle" id="upImgFrame" src="bbsUpload.do" frameborder=0 scrolling=no width="180" height="25"></iframe>&nbsp;&nbsp;<input type="button" name="Submit2" value="上传" onClick="doUploadImg();" style=" vertical-align:middle" ></td>
  </tr>
  #end
  <tr bgcolor="#FFFFFF">
    <td height="29" align="right">相关附件：</td>
    <td colspan="2"><input name="files" type="text" id="files" value="$!files" size="70" maxlength="150">
      各附件之间用逗号隔开 </td>
  </tr>
  #if($canUpload)
  <tr bgcolor="#FFFFFF">
    <td height="29" align="right">上传附件：</td>
    <td valign="middle" colspan="2">
      <iframe  name="upFrame" style=" vertical-align:middle" id="upFrame" src="bbsUpload.do" frameborder=0 scrolling=no width="180" height="25"></iframe>&nbsp;&nbsp;<input type="button" name="Submit2" value="上传" onClick="doUpload();" style=" vertical-align:middle" >
      (只能传doc、zip、pdf、rar及图片)</td>
  </tr>
  #end
  <tr align="left" bgcolor="#FFFFFF">
    <td align="right">用户名：</td>
    <td colspan="2">#if($user) $!user.username #else <span class="huinoline12">您还没有［<a class=cblue href="/bbs/bbsuser.do?parameter=reg"> 注册</a>］或［<a class=cblue 
href="/bbs/bbsuser.do">登录</a>］</span> #end</td>
  </tr>
  #if(!$need_verify)
  <tr align="left" bgcolor="#FFFFFF">
    <td align="right">验证码:</td>
    <td colspan="2"><div id=randomCodeImg></div></td>
  </tr>
  #end
  <tr bgcolor="#FFFFFF">
    <td height="30">&nbsp;</td>
    <td><input type="button" name="Submit" value="保存" onClick="doSave();">
        　
        <input type="reset" name="Submit2" value="重置" onClick="return confirm('重置操作将把已录入的所有数据清空，是否要继续该操作?');">
      　
      <input type="reset" name="Submit22" value="返回" onClick="history.go(-1);">
    </td>
  </tr>
 </table>
</form>

<hr align="center" width="98%">
#parse("/inc/foot.htm")
</body>
</html>
#if($msg)
<script>
alert('$!msg');
</script>
#end

